const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../components/login'),
    meta: {
      title: '登录',
      keepAlive: true
    }
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('../components/index'),
    meta: {
      title: '首页'
    },
    children: [
      {
        path: 'systemManager',
        name: 'systemManager',
        component: () => import('../components/pages/systemManager'),
        meta: {
          title: '系统管理'
        },
        children: [
          {
            path: 'userManager',
            name: 'userManager',
            component: () => import('../components/pages/systemManager/userManager'),
            meta: {
              title: 'userManager',
              keepAlive: false
            }
          },
          {
            path: 'roleManager',
            name: 'roleManager',
            component: () => import('../components/pages/systemManager/roleManager'),
            meta: {
              title: 'roleManager',
              keepAlive: false
            }
          },
          {
            path: 'resourceManager',
            name: 'resourceManager',
            component: () => import('../components/pages/systemManager/resourceManager'),
            meta: {
              title: 'resourceManager',
              keepAlive: false
            }
          }
        ]
      }
    ]
  }
]
export default routes
